﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using HRM.Entity;
using HRM.DAL;

namespace HRM.BIZ
{
    public class EmployeeRewardBiz: BaseBiz
    {
        public EmployeeReward GetByID(int ID)
        {
            return new EmployeeRewardDAL().GetByID(ID);
        }

        public List<EmployeeReward> GetByEmployee(int employeeID)
        {
            return new EmployeeRewardDAL().GetByEmployee(employeeID);
        }

        public List<EmployeeReward> GetByEmployee(int employeeID, int type)
        {
            if (type == 0)
                return new EmployeeRewardDAL().GetByEmployee(employeeID);
            else
                return new EmployeeRewardDAL().GetByEmployee(employeeID, type);
        }

        public EmployeeReward Update(EmployeeReward item)
        {
            return new EmployeeRewardDAL().Update(item);
        }

        public EmployeeReward Add(EmployeeReward item)
        {
            return new EmployeeRewardDAL().Add(item);
        }

        public void Delete(int ID)
        {
            new EmployeeRewardDAL().Delete(ID);
        }
    }
}
